package com.wk.security_practice.service;

import com.wk.security_practice.entity.User;
import com.wk.security_practice.mapper.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginService {
    @Autowired
    private LoginMapper loginMapper;

    public List<User> getUserByUsername(String username) {
        List<User> userList = loginMapper.getUserByUsername(username);
        return userList;
    }

}

